#include "cpu/exec/helper.h"

#define DATA_BYTE 1

#define instr setnz
#define COND cpu.eflags.ZF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr seta
#define COND cpu.eflags.ZF == 0 && cpu.eflags.CF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr setae
#define COND cpu.eflags.CF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr setb
#define COND cpu.eflags.CF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr setbe
#define COND cpu.eflags.CF == 1 || cpu.eflags.ZF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr sete
#define COND cpu.eflags.ZF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr setg
#define COND cpu.eflags.ZF == 0 && cpu.eflags.SF == cpu.eflags.OF
#include "set-template.h"
#undef instr
#undef COND

#define instr setge
#define COND cpu.eflags.SF == cpu.eflags.OF
#include "set-template.h"
#undef instr
#undef COND

#define instr setl
#define COND cpu.eflags.SF != cpu.eflags.OF
#include "set-template.h"
#undef instr
#undef COND

#define instr setle
#define COND cpu.eflags.SF != cpu.eflags.OF || cpu.eflags.ZF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr setno
#define COND cpu.eflags.OF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr setnp
#define COND cpu.eflags.PF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr setns
#define COND cpu.eflags.SF == 0
#include "set-template.h"
#undef instr
#undef COND

#define instr seto
#define COND cpu.eflags.OF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr setp
#define COND cpu.eflags.PF == 1
#include "set-template.h"
#undef instr
#undef COND

#define instr sets
#define COND cpu.eflags.SF == 1
#include "set-template.h"
#undef instr
#undef COND

#undef DATA_BYTE





